import request from '@/utils/request'
export function Getclients(params) {
  return request({
    url: '/clients'
  })
}
// 删除、

export function delclients(id) {
  return request({
    url: `/clients/${id}`,
    method: 'delete'

  })
}
// 获取客户列表
export function getClisty(params) {
  return request({
    url: '/clients',
    params
  })
}

// 新增
export function addClients(data) {
  return request({
    methods: 'post',
    url: '/clients',
    data
  })
}
// 根据id获取详情
export function getClistyInfo(id) {
  return request({
    url: `/clients/${id}`
  })
}
// 编辑客户 /clients/:id
export function editClifty(data) {
  return request({
    url: `/clients/${data.id}`,
    method: 'put',
    data
  })
}
